package visitor;

import java.util.ArrayList;
import java.util.List;


public class GroupClient implements IVisitable {
	
	private List<Client> clients = new ArrayList<Client>();
	private String name;
	
	public String getName() {
		return this.name;
	}
	
	public GroupClient(String name) {
		this.name = name;
	}

	@Override
	public void accept(IVisitor visitor) {
		visitor.visit(this);
		for(Client c : clients) {
			c.accept(visitor);
		}
	}
	
	public void addClient(Client c) {
		this.clients.add(c);
	}

	public List<Client> getClients() {
		return clients;
	}
}
